package com.gecba.system.service;

import com.gecba.modular.jpa.service.IService;
import com.gecba.system.entity.SysUser;
import com.gecba.system.vo.SearchVO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

public interface SysUserService extends IService<SysUser,Long> {

    /**
     *多条件分页获取用户列表
     *@author ChenBo
     *@date 2021/7/19
     */
    Page<SysUser> findByCondition(SysUser sysUser, SearchVO searchVO, Pageable initPage);

    /**
     * 添加用户
     * @param sysUser
     * @return
     */
    SysUser addUser(SysUser sysUser);

    /**
     * 更新用户
     * @param sysUser
     * @return
     */
    SysUser updateUser(SysUser sysUser);
}
